<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Grave
 *
 * @ORM\Table(name="grave")
 * @ORM\Entity
 */
class Grave
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var string
     *
     * @ORM\Column(name="uuid", type="string", length=36, nullable=true)
     */
    protected $uuid;

    /**
     * @var string
     *
     * @ORM\Column(name="type", type="string", length=45, nullable=true)
     */
    protected $type;

    /**
     * @var string
     *
     * @ORM\Column(name="quote", type="string", length=45, nullable=true)
     */
    protected $quote;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\Attempt
     *
     * @ORM\ManyToOne(targetEntity="Entity\Attempt")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="attempt_id", referencedColumnName="id")
     * })
     */
    protected $attempt;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set uuid
     *
     * @param string $uuid
     * @return Grave
     */
    public function setUuid($uuid)
    {
        $this->uuid = $uuid;
    
        return $this;
    }

    /**
     * Get uuid
     *
     * @return string 
     */
    public function getUuid()
    {
        return $this->uuid;
    }

    /**
     * Set type
     *
     * @param string $type
     * @return Grave
     */
    public function setType($type)
    {
        $this->type = $type;
    
        return $this;
    }

    /**
     * Get type
     *
     * @return string 
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set quote
     *
     * @param string $quote
     * @return Grave
     */
    public function setQuote($quote)
    {
        $this->quote = $quote;
    
        return $this;
    }

    /**
     * Get quote
     *
     * @return string 
     */
    public function getQuote()
    {
        return $this->quote;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return Grave
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set attempt
     *
     * @param \Entity\Attempt $attempt
     * @return Grave
     */
    public function setAttempt(\Entity\Attempt $attempt = null)
    {
        $this->attempt = $attempt;
    
        return $this;
    }

    /**
     * Get attempt
     *
     * @return \Entity\Attempt 
     */
    public function getAttempt()
    {
        return $this->attempt;
    }
}
